<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户管理</title>
</head>
<body>
用户管理

<table border="1" cellspacing="0" width="800">
    <tr>
        <th>序号</th>
        <th>用户名</th>
        <th>密码</th>
        <th>操作</th>
    </tr>
    <tr th:each="user, state:${page.list}">
        <td th:text="${state.count}">序号</td>
        <td th:text="${user.username}">用户名</td>
        <td th:text="${user.password}">密码</td>
        <th>操作</th>
    </tr>
    <tfoot>
        <tr>
            <td colspan="4">
                <a th:href="@{/sys/user(pageNum=1, pageSize=${page.pageSize})}">首页</a>
                <span th:each="num:${page.navigatepageNums}">
                    <a th:if="${num == page.pageNum}" th:text="${num}"></a>
                    <a th:if="${num != page.pageNum}" th:href="@{/sys/user(pageNum=${num}, pageSize=${page.pageSize})}" th:text="${num}">尾页</a>
                </span>
                <a th:href="@{/sys/user(pageNum=${page.pages}, pageSize=${page.pageSize})}">尾页</a>
            </td>
        </tr>
    </tfoot>
</table>
</body>
</html>